package com.trkj.dao.wdm;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojo.BonusPenaltype;

public interface BonusPenaltypeDAO extends CrudRepository<BonusPenaltype, Long>{
	@Query("from BonusPenaltype r ")
	public List<BonusPenaltype> queryByNaPage(Pageable p);
		
	@Query("from BonusPenaltype f where f.bptName like?1")
	public List<BonusPenaltype> query_By_idorname(String text,Pageable p);
	@Query("select count(f) from BonusPenaltype f where f.bptName like?1")
	public long count(String string);
}
